home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
pcv06n04.zip
/
DOSVER.TXT
< prev
Wrap
Text File
|
1993-06-01
|
1KB
|
37 lines
DOSVER April 1993 Jeff Prosise
----------------------------------------------------------------
Purpose: Provides a check of a batch file to determine
if the DOS version being used will support your
batch file.
Syntax: DOSVER
Remarks: DOSVER checks the existing DOS version being used
to see if the batch file you are running will be
supported by that DOS version. The DEBUG script
to create this program is:
N DOSVER.COM
E 0100 B4 30 CD 21 8A FC B3 0A
E 0108 F6 E3 02 C4 B4 4C CD 21
RCX
10
W
Q
REM This debug script returns the DOS version as
an Errorlevel..
This batch file checks for DOS version 3.2 or
earlier:
DOSVER
IF ERRORLEVEL 33 GOTO CONTINUE
ECHO Requirees DOS 3.3 or higher
GOTO END
REM [Add your other batch commands after this line]
:CONTINUE
To check for DOS version 5.0, change the 33 above to
50.